package com.gzx.plugin.tjzy.modular.product.entity.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import com.gzx.plugin.tjzy.modular.product.entity.GzxProduct;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 委托公司产品视图对象 gzx_product
 *
 * @author LionLi
 * @date 2024-09-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GzxProduct.class)
public class GzxProductVo implements TransPojo, Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    //@ExcelProperty(value = "")
    private String id;

    /**
     * 所属公司编码
     */
    @ExcelProperty(value = "所属公司编码")
    @Trans(type = TransType.DICTIONARY, key = "company", ref = "companyName")
    private String companyCode;

    /**
     * 所属公司名称
     */
    @ExcelProperty(value = "所属公司名称")
    private String companyName;

    /**
     * 产品编号
     */
    @ExcelProperty(value = "产品编号")
    private String productCode;

    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    private String productName;

    /**
     * 产品描述
     */
    @ExcelProperty(value = "产品描述")
    private String productDescription;

}
